﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="FindPerson.aspx.cs" Inherits="ASP_klient.WebForm2" %>

<asp:Content ID="HeadContentFindPerson" ContentPlaceHolderID="head" runat="server">
    </asp:Content>


<asp:Content ID="BodyContentFindPerson" ContentPlaceHolderID="MainContent" runat="server">
    <h2> Oprettede brugere.</h2>
    <br />

    Vælg den ønskede person for redigering.<br />
    
    <asp:GridView ID="BrugerGridView" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        DataSourceID="ObjectDataSourcePersoner" GridLines="Horizontal" Height="250px" 
        onselectedindexchanged="GridView1_SelectedIndexChanged" ShowHeaderWhenEmpty="True" Width="900px">
        <AlternatingRowStyle BackColor="#F7F7F7" />
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
            <asp:BoundField DataField="personID" HeaderText="ID" ReadOnly="True" SortExpression="personID" />
            <asp:CheckBoxField DataField="administrator" HeaderText="Adm." SortExpression="administrator" />
            <asp:CheckBoxField DataField="aktiv" HeaderText="Aktiv" SortExpression="aktiv" />
            <asp:BoundField DataField="navn" HeaderText="Navn" SortExpression="navn" />
            <asp:BoundField DataField="telefonnr" HeaderText="Tlf." SortExpression="telefonnr" />
            <asp:BoundField DataField="email" HeaderText="e-mail" SortExpression="email" />
            <asp:BoundField DataField="adresse" HeaderText="Adresse" SortExpression="adresse" />
            <asp:BoundField DataField="postnr" HeaderText="Postnr" SortExpression="postnr" />
            <asp:BoundField DataField="by" HeaderText="By" SortExpression="by" />
            <asp:BoundField DataField="kontonr" HeaderText="Kontonr." SortExpression="kontonr" />
            <asp:BoundField DataField="regnr" HeaderText="Reg.nr." SortExpression="regnr" />
            <asp:BoundField DataField="KontraktType" HeaderText="KontraktType" SortExpression="KontraktType" />
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSourcePersoner" runat="server" SelectMethod="VisBrugere" 
        TypeName="ASP_klient.WilkeServiceRef.WilkeServiceClient">
    </asp:ObjectDataSource>
    <br />
</asp:Content>